import http from '@/utils/request'

const options = {
  ignoreCancelToken: false
}

const API_PREFIX = '/web/reports'


export const fetchDropWidget = params => http.post(`${API_PREFIX}/sys/widget-list/simple-list`, params)

export const fetchWidgetInfo = params => http.get(`${API_PREFIX}/sys/model/info`, { params })

export const fetchWidgetGrid = params => http.get(`${API_PREFIX}/sys/model/grid-list`, {
  params
}, options)

export const fetchWidgetList = params => http.post(`${API_PREFIX}/sys/model/new-card-list`, params, {}, options)

export const fetchWidgetFilter = params => http.post(`${API_PREFIX}/sys/model/tag-list`, params, {}, options)

